package com.buobao.bmall.utils;


import org.apache.commons.codec.digest.DigestUtils;

public class MD5Util {
    private static final Integer salt = 1122334411;
    public static String md5Digest(String origin) {
        String resultString = null;
        char[] chars = origin.toCharArray();
        for (int i = 0; i < chars.length; i++) {
            chars[i] = (char) (chars[i] ^ salt);
        }
        resultString = new String(chars);
        return DigestUtils.md5Hex(resultString);
    }
}
